<?php

class Zend_Controller_Action_Helper_DbSequenceNextVal extends Zend_Controller_Action_Helper_Abstract {
	
	public function dbSequenceNextVal($sequenceName) {
		
		$val = $this->fetchOne("SELECT NEXTVAL(" . $this->quote($sequenceName) . ")");
		return (int)$val;
	}
}